<?php
namespace App\Animal;

abstract class Animal
{
    protected $name;
    protected $color;

    public function __construct($name, $color)
    {
        $this->name = $name;
        $this->color = $color;
    }

    public function __get($name)
    {
        return $this->$name;
    }

    public abstract function eat();

    public abstract function breath();

    public abstract function sleep();

    public abstract function scream();
}